\hypertarget{classMyRandom}{\section{\-My\-Random \-Class \-Reference}
\label{classMyRandom}\index{\-My\-Random@{\-My\-Random}}
}


{\ttfamily \#include $<$random.\-hpp$>$}

\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classMyRandom_a835afc81a3a86b0d890ce45af91c93c7}{\-My\-Random} (const gsl\-\_\-rng\-\_\-type $\ast$t=gsl\-\_\-rng\-\_\-ranlxs2)
\item 
\hyperlink{classMyRandom_abdfe9d5ec4fd9a6d78637d618aee9ca3}{$\sim$\-My\-Random} ()
\item 
void \hyperlink{classMyRandom_a4ca48f512326587e6f7d54cae2442ce4}{set} ()
\item 
double \hyperlink{classMyRandom_aab5214d02878da52c3e4ec6a20ad4b5a}{sample} ()
\item 
int \hyperlink{classMyRandom_a0045b69486fca3e0dd89c88329b23dc6}{sample\-\_\-int\-\_\-from} (vector$<$ double $>$ p)
\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}
\-Class \hyperlink{classMyRandom}{\-My\-Random} for generating random numbers. \-This class uses random number generator from \-G\-N\-U \-Scientific library 

\subsection{\-Constructor \& \-Destructor \-Documentation}
\hypertarget{classMyRandom_a835afc81a3a86b0d890ce45af91c93c7}{\index{\-My\-Random@{\-My\-Random}!\-My\-Random@{\-My\-Random}}
\index{\-My\-Random@{\-My\-Random}!MyRandom@{\-My\-Random}}
\subsubsection[{\-My\-Random}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-My\-Random\-::\-My\-Random} (
\begin{DoxyParamCaption}
\item[{const gsl\-\_\-rng\-\_\-type $\ast$}]{t = {\ttfamily gsl\-\_\-rng\-\_\-ranlxs2}}
\end{DoxyParamCaption}
)}}\label{classMyRandom_a835afc81a3a86b0d890ce45af91c93c7}
\-Constructor


\begin{DoxyParams}{\-Parameters}
{\em t} & pointer to gsl\-\_\-rng\-\_\-type. default gsl\-\_\-rng\-\_\-ranlxs2 \\
\hline
\end{DoxyParams}
\hypertarget{classMyRandom_abdfe9d5ec4fd9a6d78637d618aee9ca3}{\index{\-My\-Random@{\-My\-Random}!$\sim$\-My\-Random@{$\sim$\-My\-Random}}
\index{$\sim$\-My\-Random@{$\sim$\-My\-Random}!MyRandom@{\-My\-Random}}
\subsubsection[{$\sim$\-My\-Random}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-My\-Random\-::$\sim$\-My\-Random} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classMyRandom_abdfe9d5ec4fd9a6d78637d618aee9ca3}
\-Destructor 

\subsection{\-Member \-Function \-Documentation}
\hypertarget{classMyRandom_aab5214d02878da52c3e4ec6a20ad4b5a}{\index{\-My\-Random@{\-My\-Random}!sample@{sample}}
\index{sample@{sample}!MyRandom@{\-My\-Random}}
\subsubsection[{sample}]{\setlength{\rightskip}{0pt plus 5cm}double {\bf \-My\-Random\-::sample} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classMyRandom_aab5214d02878da52c3e4ec6a20ad4b5a}
\-Sample one sample from rng.

\begin{DoxyReturn}{\-Returns}
double prec. floating point number uniformly distributed in \mbox{[}0,1) 
\end{DoxyReturn}
\hypertarget{classMyRandom_a0045b69486fca3e0dd89c88329b23dc6}{\index{\-My\-Random@{\-My\-Random}!sample\-\_\-int\-\_\-from@{sample\-\_\-int\-\_\-from}}
\index{sample\-\_\-int\-\_\-from@{sample\-\_\-int\-\_\-from}!MyRandom@{\-My\-Random}}
\subsubsection[{sample\-\_\-int\-\_\-from}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf \-My\-Random\-::sample\-\_\-int\-\_\-from} (
\begin{DoxyParamCaption}
\item[{vector$<$ double $>$}]{p}
\end{DoxyParamCaption}
)}}\label{classMyRandom_a0045b69486fca3e0dd89c88329b23dc6}
\-Sample from discrete distribution


\begin{DoxyParams}{\-Parameters}
{\em p} & vector$<$double$>$ discrete distribution\\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
sample from discrete distribution 
\end{DoxyReturn}
\hypertarget{classMyRandom_a4ca48f512326587e6f7d54cae2442ce4}{\index{\-My\-Random@{\-My\-Random}!set@{set}}
\index{set@{set}!MyRandom@{\-My\-Random}}
\subsubsection[{set}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf \-My\-Random\-::set} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{classMyRandom_a4ca48f512326587e6f7d54cae2442ce4}
\-Seed the rng using std\-::time(0) 

\-The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
include/\hyperlink{random_8hpp}{random.\-hpp}\item 
src/random.\-cpp\end{DoxyCompactItemize}
